﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="CambiarPassword.aspx.cs"
    Inherits="WebAppAuthAdmin.App.CambiarPassword" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script src="/Scripts/App/CambiarPassword.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Cambio de Password
    </h2>
    <asp:Panel ID="pnlCambioPass" runat="server" CssClass="editionContainerFilter">
        <p>
            <span class="title2">Usuario:</span>
            <asp:Label ID="lblUserName" runat="server" Text="Label"></asp:Label>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Password Anterior:</span>
            <asp:TextBox ID="txtPasswordAnterior" runat="server" Text="" Width="350" TextMode="Password"
                ClientIDMode="Static"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Password Nuevo:</span>
            <asp:TextBox ID="txtPasswordNuevo" runat="server" Text="" Width="350" TextMode="Password"
                ClientIDMode="Static"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title2">Confirmación de Password:</span>
            <asp:TextBox ID="txtConfirmacionPassword" runat="server" Text="" Width="350" TextMode="Password"
                ClientIDMode="Static" title=""></asp:TextBox>
        </p>
        <div class="clear">
        </div>
    </asp:Panel>
    <div class="buttons">
        <asp:LinkButton ID="lnkGuardar" runat="server" OnClick="lnkGuardar_Click" CssClass="guardar"
            OnClientClick="return window.CambiarPasswordObj.ValidateGuardar();">Guardar</asp:LinkButton>
        <asp:LinkButton ID="lnkCancelar" runat="server" ClientIDMode="Static" CssClass="agregarNuevo"
            OnClientClick="if(document.DirtyCheck.areControlsDirty()) { return confirm('Ha realizado modificaciones sin guardar. Desea continuar?');} else { return true;}"
            OnClick="lnkCancelar_Click" CausesValidation="false">Volver</asp:LinkButton>
    </div>
    <script type='text/javascript'>

        $(document).ready(function () {

            if (!window.AppCommonObj) {
                window.AppCommonObj = new AppCommon();
            }

            if (!window.CambiarPasswordObj) {
                window.CambiarPasswordObj = new window.CambiarPasswordJs();
            }

            if (!document.DirtyCheck) {
                document.DirtyCheck = new DirtyCheck();
                document.DirtyCheck.loadControlState();
            }

            $('input[title]').inputHints();

        });
    </script>
</asp:Content>
